package com.software.levelupandroid.utils;

import android.app.Activity;
import android.content.Context;
import android.widget.Toast;

/**
 * @Description TODO
 * @Author LiangYaJie
 * @CreateTime 2024年05月15日 15:16:07
 */
public class ToastUtil {
    public static void showToastOnUI(Activity activity, String content){
        activity.runOnUiThread(new Runnable() {
            @Override
            public void run() {
                Toast.makeText(activity, content, Toast.LENGTH_SHORT).show();
            }
        });
    }
}
